import {Ik} from "./Ik.ts";

class MachineEnergy {
    name: string
    energy: number

    constructor(name: string, energy: number) {
        this.name = name
        this.energy = energy
    }
}

let 电弧熔炉 = new MachineEnergy("电弧熔炉", 360)
let 制造台MKI = new MachineEnergy("制造台MKI", 270)
let 采矿机 = new MachineEnergy("采矿机", 420)

let getMachineEnergy = (name: string) => {
    switch (name) {
        case Ik.电弧熔炉:
            return 电弧熔炉.energy
        case Ik.制造台MKI:
            return 制造台MKI.energy
        case Ik.采矿机:
            return 采矿机.energy
        default:
            return 0
    }
}

export default getMachineEnergy
